package com.xq.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Collection;
import java.util.Collections;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;

/**
 * <p>
 * 
 * </p>
 *
 * @author wuven
 * @since 2025-05-21
 */
@Getter
@Setter
@TableName("ums_users")
@AllArgsConstructor
@NoArgsConstructor
public class UmsUsers implements Serializable{

    private static final long serialVersionUID = 1L;

    @TableId("user_id")
    private String userId;

    @TableField("username")
    private String username;

    @TableField("password_hash")
    private String passwordHash;

    @TableField("mobile")
    private String mobile;

    @TableField("email")
    private String email;

    @TableField("user_type")
    private String userType;

    @TableField("organization_id")
    private String organizationId;

    @TableField("created_at")
    private LocalDateTime createdAt;

    @TableField("updated_at")
    private LocalDateTime updatedAt;

}
